package com.imooc.bilibili.auth.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imooc.bilibili.auth.IAuthMenuService;
import com.imooc.bilibili.domain.auth.AuthMenu;
import com.imooc.bilibili.domain.auth.AuthRoleMenu;
import com.imooc.bilibili.mapper.auth.AuthMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 权限控制-页面访问表 服务实现类
 * </p>
 *
 * @author gcq
 * @since 2022-05-31
 */
@Service
public class AuthMenuServiceImpl extends ServiceImpl<AuthMenuMapper, AuthMenu> implements IAuthMenuService {

    @Autowired
    AuthMenuMapper authMenuMapper;

    @Override
    public List<AuthRoleMenu> getAuthRoleMenuByRoleIds(Set<Long> roleIdSet) {
        return authMenuMapper.getAuthRoleMenuByRoleIds(roleIdSet);
    }
}
